import request from "@/utils/request";

export function getList(params) {
    return request({
        url: "/v1/user",
        method: "get",
        params,
    });
}

export function addAccount(data) {
    return request({
        url: "/v1/user",
        method: "post",
        data,
    });
}

export function delAccount(userid) {
    return request({
        url: "/v1/user",
        method: "delete",
        data: { user_id: userid },
    });
}

export function updateAccount(data) {
    return request({
        url: "/v1/user",
        method: "put",
        data,
    });
}